<%@ include file="config.jsp" %>

<html>
<head>
<title>EDITAR MATRICULA</title>
</head>
    <body>
    	<div id="header">
			<%@ include file="header.jsp" %>
    	</div>	  
    	<div id="menu">
			<%@ include file="menu.jsp" %>
    	</div>	  
    	<div id="body">
    	<div class=error>
    		<ul>
		   		<c:forEach var="error" items="${errors}" > 
					<li>${error}</li>		   			
		   		</c:forEach>
    		</ul>
    	</div>
		<div class=message>${message}</div>
			<fieldset>
				<legend>Editar Matricula</legend>
				<form method="post" name="usuarioSistema" action="${pageContext.request.contextPath}/matriculaEditar">
					<label>RA Aluno</label>
					<input type="text" name="raAluno" readonly="readonly" value="${matricula.raAluno}" size="10" maxlength="10">
					
					<label>Codigo Curso</label>
					<input type="text" name="codigoCurso" readonly="readonly" value="${matricula.codigoCurso}" size="10" maxlength="10">
					
					<label>Data Matricula</label>
					<input type="text" name=dataMatricula readonly="readonly" value="<fmt:formatDate value="${matricula.dataMatricula}" pattern="dd/MM/yyyy"/>" title="Ex. 21/11/2009" alt="Ex. 21/11/2009" size="10" maxlength="10">
					
					<select name="situacaoMatricula">
						<option  value="ATIVA" <c:if test="${matricula.ativa}">selected="selected"</c:if>>Ativa</option>
						<option  value="INATIVA" <c:if test="${matricula.inativa}">selected="selected"</c:if>>Inativa</option>
						<option  value="TRANCADA" <c:if test="${matricula.trancada}">selected="selected"</c:if>>Trancada</option>
					</select>
					
					<input type="submit" value="Atualizar">
				</form>
			</fieldset>
    	</div>	  
    	<div id="footer">
			<%@ include file="footer.jsp" %>
    	</div>	  
		      
    </body>  
</html>